<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head lang="zh-CN">
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>WeixinChannel微信接口测试页面</title>
<head>
</head>

<body>
	<br/>
	<center><h2>WeixinChannel微信渠道接口测试页面</h2>《统一支付渠道》版</center>
	<br/>
	<fieldset style="width: 600px; margin: auto">
		<legend>1.支付接口 /pay</legend>
		<br/>
		<form action="${pageContext.request.contextPath}/pay" method="POST">
			<table cellspacing="0" cellpadding="0" align="center">
				<tr>
					<td align="right">支付类型</td>
					<td><select name="channel_fee_type">
                        <option value="">=请选择支付类型类型=</option>
                        <option value="public">公众号支付</option>
                        <option value="barcode">扫码支付</option></td>
				</tr>
				<tr>
					<td align="right">版本</td>
					<td><select name="version">
                        <option value="">=请选择接口版本=</option>
                        <option value="V0.0.1">V0.0.1</option>
                        <option value="V2">V2</option>
                        <option value="V3">V3</option></td>
				</tr>
				<tr>
					<td align="right">交易系统支付流水号</td>
					<td><input type="text" name="pay_ssn_id" size="60" /></td>
				</tr>
				<tr>
					<td align="right">交易系统订单号</td>
					<td><input type="text" name="order_id" size="60" /></td>
				</tr>
				<tr>
					<td align="right">支付金额</td>
					<td><input type="text" name="pay_fee" size="60" value="1"/></td>
				</tr>
				<tr>
					<td align="right">支付币种</td>
					<td><input type="text" name="pay_cry" size="60" value="156"/></td>
				</tr>
				<tr>
					<td align="right">支付令牌</td>
					<td><input type="text" name="buyer_token" size="60" /></td>
				</tr>
				<tr>
					<td align="right">支付凭证</td>
					<td><input type="text" name="buyer_voucher" size="60" /></td>
				</tr>
				<tr>
					<td align="right">商品标题</td>
					<td><input type="text" name="subjet" size="60" value="测试商品"/></td>
				</tr>
				<tr>
					<td align="right">备注</td>
					<td><input type="text" name="remark" size="60" value="无"/></td>
				</tr>
				<tr>
					<td align="right">买家姓名</td>
					<td><input type="text" name="buyer_name" size="60" /></td>
				</tr>
				<tr>
					<td align="right">买家邮箱</td>
					<td><input type="text" name="buyer_email" size="60" /></td>
				</tr>
				<tr>
					<td align="right">卖家姓名</td>
					<td><input type="text" name="seller_name" size="60" /></td>
				</tr>
				<tr>
					<td align="right">卖家邮箱</td>
					<td><input type="text" name="seller_email" size="60" /></td>
				</tr>
				<tr>
					<td align="right">扩展 JSON</td>
					<td><input type="text" name="expand_json" size="60" /></td>
				</tr>
				<tr>
					<td align="right">健康金签名</td>
					<td><input type="text" name="sign" size="60" value="测试-网页-微信渠道-签名"/></td>
				</tr>
				<tr>
					<td colspan="2" align="center"><input type="submit" value="提 交 测 试"></td>
				</tr>
			</table>
		</form>
	</fieldset>
	<br>	
	<fieldset style="width: 600px; margin: auto">
		<legend>2.退款接口 /refund</legend>
		<br/>
		<form action="${pageContext.request.contextPath}/refund" method="POST">
			<table cellspacing="0" cellpadding="0" align="center">
				<tr>
					<td align="right">支付类型</td>
					<td><select name="channel_fee_type">
                        <option value="">=请选择支付类型类型=</option>
                        <option value="public">公众号支付</option>
                        <option value="barcode">扫码支付</option></td>
				</tr>
				<tr>
					<td align="right">版本</td>
					<td><select name="version">
                        <option value="">=请选择接口版本=</option>
                        <option value="V0.0.1">V0.0.1</option>
                        <option value="V2">V2</option>
                        <option value="V3">V3</option></td>
				</tr>
				<tr>
					<td align="right">交易系统支付流水号</td>
					<td><input type="text" name="pay_ssn_id" size="60" /></td>
				</tr>
				<tr>
					<td align="right">交易系统订单号</td>
					<td><input type="text" name="order_id" size="60" /></td>
				</tr>
				<tr>
					<td align="right">订单总金额</td>
					<td><input type="text" name="total_fee" size="60" value="1"/></td>
				</tr>
				<tr>
					<td align="right">支付渠道流水号</td>
					<td><input type="text" name="pay_chnl_seq" size="60"/></td>
				</tr>
				<tr>
					<td align="right">退款金额</td>
					<td><input type="text" name="refund_fee" size="60" value="1"/></td>
				</tr>
				<tr>
					<td align="right">退款币种</td>
					<td><input type="text" name="currency" size="60" value="156"/></td>
				</tr>
				<tr>
					<td align="right">扩展 JSON</td>
					<td><input type="text" name="expand_json" size="60" /></td>
				</tr>
				<tr>
					<td align="right">健康金签名</td>
					<td><input type="text" name="sign" size="60" value="测试-网页-微信渠道-签名"/></td>
				</tr>
				<tr>
					<td colspan="2" align="center"><input type="submit" value="提 交 测 试"></td>
				</tr>
			</table>
		</form>
	</fieldset>
	<br>	
	<fieldset style="width: 600px; margin: auto">
		<legend>3.订单查询 /query</legend>
		<br/>
		<form action="${pageContext.request.contextPath}/query" method="POST">
			<table cellspacing="0" cellpadding="0" align="center">
				<tr>
					<td align="right">支付类型</td>
					<td><select name="channel_fee_type">
                        <option value="">=请选择支付类型类型=</option>
                        <option value="public">公众号支付</option>
                        <option value="barcode">扫码支付</option></td>
				</tr>
				<tr>
					<td align="right">版本</td>
					<td><select name="version">
                        <option value="">=请选择接口版本=</option>
                        <option value="V0.0.1">V0.0.1</option>
                        <option value="V2">V2</option>
                        <option value="V3">V3</option></td>
				</tr>
				<tr>
					<td align="right">交易系统支付流水号</td>
					<td><input type="text" name="pay_ssn_id" size="60" /></td>
				</tr>
				<tr>
					<td align="right">交易系统订单号</td>
					<td><input type="text" name="order_id" size="60" /></td>
				</tr>
				<tr>
					<td align="right">支付渠道流水号</td>
					<td><input type="text" name="pay_chnl_seq" size="60"/></td>
				</tr>
				<tr>
					<td align="right">扩展 JSON</td>
					<td><input type="text" name="expand_json" size="60" /></td>
				</tr>
				<tr>
					<td align="right">健康金签名</td>
					<td><input type="text" name="sign" size="60" value="测试-网页-微信渠道-签名"/></td>
				</tr>
				<tr>
					<td colspan="2" align="center"><input type="submit" value="提 交 测 试"></td>
				</tr>
			</table>
		</form>
	</fieldset>
	<br>
	<fieldset style="width: 600px; margin: auto">
		<legend>4.退款查询 /refund_query</legend>
		<br/>
		<form action="${pageContext.request.contextPath}/refund_query" method="POST">
			<table cellspacing="0" cellpadding="0" align="center">
				<tr>
					<td align="right">支付类型</td>
					<td><select name="channel_fee_type">
                        <option value="">=请选择支付类型类型=</option>
                        <option value="public">公众号支付</option>
                        <option value="barcode">扫码支付</option></td>
				</tr>
				<tr>
					<td align="right">版本</td>
					<td><select name="version">
                        <option value="">=请选择接口版本=</option>
                        <option value="V0.0.1">V0.0.1</option>
                        <option value="V2">V2</option>
                        <option value="V3">V3</option></td>
				</tr>
				<tr>
					<td align="right">交易系统支付流水号</td>
					<td><input type="text" name="pay_ssn_id" size="60" /></td>
				</tr>
				<tr>
					<td align="right">交易系统订单号</td>
					<td><input type="text" name="order_id" size="60" /></td>
				</tr>
				<tr>
					<td align="right">支付渠道流水号</td>
					<td><input type="text" name="pay_chnl_seq" size="60"/></td>
				</tr>
				<tr>
					<td align="right">扩展 JSON</td>
					<td><input type="text" name="expand_json" size="60" /></td>
				</tr>
				<tr>
					<td align="right">健康金签名</td>
					<td><input type="text" name="sign" size="60" value="测试-网页-微信渠道-签名"/></td>
				</tr>
				<tr>
					<td colspan="2" align="center"><input type="submit" value="提 交 测 试"></td>
				</tr>
			</table>
		</form>
	</fieldset>
	<br>
	<center>以前的</center>
	<br/>
	<fieldset style="width: 600px; margin: auto">
		<legend>1.获取access_token</legend>
		<form action="${pageContext.request.contextPath}/getToken" method="get">
			<table cellspacing="0" cellpadding="0" align="center">
				<tr>
					<td colspan="2"><input type="submit" value="提 交"></td>
				</tr>
			</table>
		</form>
		<br>
	</fieldset>
	<br>
	<fieldset style="width: 600px; margin: auto">
		<legend>2.查询单笔订单</legend>

		<form action="${pageContext.request.contextPath}/query" method="POST">
			<table cellspacing="0" cellpadding="0" align="center">
				<tr>
					<td>partner</td>
					<td><input type="text" size="100" name="partner"
						value="2088311338307490" /></td>
				</tr>
				<tr>
					<td>trade_no</td>
					<td><input type="text" size="100" name="trade_no" /></td>
				</tr>
				<tr>
					<td>out_trade_no</td>
					<td><input type="text" size="100" name="out_trade_no" /></td>
				</tr>
				<tr>
					<td colspan="2"><input type="submit" value="提 交"></td>
				</tr>
			</table>
		</form>
	</fieldset>
	<br>
	<fieldset style="width: 600px; margin: auto">
		<legend>3.发货通知</legend>
		<form action="${pageContext.request.contextPath}/cancel" method="POST">
			<table cellspacing="0" cellpadding="0" align="center">
				<tr>
					<td>partner</td>
					<td><input type="text" size="100" name="partner"
						value="2088311338307490" /></td>
				</tr>
				<tr>
					<td>trade_no</td>
					<td><input type="text" size="100" name="trade_no" /></td>
				</tr>
				<tr>
					<td>out_trade_no</td>
					<td><input type="text" size="100" name="out_trade_no" /></td>
				</tr>
				<tr>
					<td>operator_type</td>
					<td><input type="text" size="100" name="operator_type" /></td>
				</tr>
				<tr>
					<td>operator_id</td>
					<td><input type="text" size="100" name="operator_id" /></td>
				</tr>
				<tr>
					<td colspan="2"><input type="submit" value="提 交"></td>
				</tr>
			</table>
		</form>
	</fieldset>
	<br>
</body>
</html>
